#ifndef __BUZZER_H
#define __BUZZER_H

#include "stm32f0xx.h"
#include "delay.h"
#include "usart.h"
#define BUZZER_DEBUG 0
//PA9
#if BUZZER_DEBUG
#define BUZZER_ON printf("BUZZER_ON\r\n");
#define BUZZER_OFF printf("BUZZER_OFF\r\n");
#else
#define BUZZER_ON GPIO_SetBits(GPIOA,GPIO_Pin_9);
#define BUZZER_OFF GPIO_ResetBits(GPIOA,GPIO_Pin_9);
#endif

void Buzzer_Init(void);
void Buzzer_RunTime(uint16_t time);
void Buzzer_RunMul_Time(void);
//void Buzzer_RunMulDec_Time(uint16_t time,uint8_t num);

#endif
